import request from '@/utils/request'
export function childActivityAddOrUpdate (params = {}) {
  return request({
    url: '/childActivity/addOrUpdate',
    method: 'post',
    params
  })
}

export function childActivityDetail (params = {}) {
  return request({
    url: '/childActivity/detail',
    method: 'post',
    params
  })
}
export function childActivityDelete (params = {}) {
  return request({
    url: '/childActivity/delete',
    method: 'post',
    params
  })
}
export function delChildrenLeaveRequest (params = {}) {
  return request({
    url: '/web/children/delChildrenLeaveRequest',
    method: 'post',
    params
  })
}
export function estimateTeacherDelete (params = {}) {
  return request({
    url: '/estimate/teacher/delete',
    method: 'get',
    params
  })
}

export function saveChildrenLeaveRequest (params = {}) {
  return request({
    url: '/web/children/saveChildrenLeaveRequest',
    method: 'post',
    data: params
  })
}
export function editChildrenLeaveRequest (params = {}) {
  return request({
    url: '/web/children/editChildrenLeaveRequest',
    method: 'post',
    data: params
  })
}

export function exportClassCheckDetail (params = {}) {
  return request({
    url: '/web/classes/exportClassCheckDetail',
    method: 'get',
    responseType: 'blob',
    params
  })
}

export function childActivityExport (params = {}) {
  return request({
    url: '/childActivity/export',
    method: 'get',
    params
  })
}
export function selChildrenLeaveRequestExport (params = {}) {
  return request({
    url: '/web/children/selChildrenLeaveRequestExport',
    method: 'get',
    params
  })
}
export function teacherExport (params = {}) {
  return request({
    url: '/estimate/teacher/export',
    method: 'get',
    responseType: 'blob',
    params
  })
}
export function aboutPalletDerivePallet (params = {}) {
  return request({
    url: 'crm/aboutPallet/derivePallet',
    method: 'get',
    responseType: 'blob',
    params
  })
}
export function aboutVisitDeriveVisit (params = {}) {
  return request({
    url: 'crm/aboutVisit/deriveVisit',
    method: 'get',
    responseType: 'blob',
    params
  })
}

export function aboutPalletList (params = {}) {
  return request({
    url: 'crm/aboutPallet/list',
    method: 'post',
    data: params
  })
}
export function aboutVisitList (params = {}) {
  return request({
    url: 'crm/aboutVisit/list',
    method: 'post',
    data: params
  })
}
export function aboutPalletupdate (params = {}) {
  return request({
    url: 'crm/aboutPallet/update',
    method: 'post',
    data: params
  })
}
export function aboutVisitupdate (params = {}) {
  return request({
    url: 'crm/aboutVisit/update',
    method: 'post',
    data: params
  })
}
export function aboutPalletAdd (params = {}) {
  return request({
    url: 'crm/aboutPallet/add',
    method: 'post',
    data: params
  })
}
export function aboutVisitAdd (params = {}) {
  return request({
    url: 'crm/aboutVisit/add',
    method: 'post',
    data: params
  })
}
export function leadsHistorySaveVisit (params = {}) {
  return request({
    url: 'crm/web/leadsHistory/saveVisit',
    method: 'post',
    data: params
  })
}

export function leadsHistoryFindByPalletId (params = {}) {
  return request({
    url: 'crm/web/leadsHistory/findByPalletId',
    method: 'GET',
    params
  })
}
export function leadsHistoryFindByVisitId (params = {}) {
  return request({
    url: 'crm/web/leadsHistory/findByVisitId',
    method: 'GET',
    params
  })
}

